## READ ME

## Replication data for Kerner, Sumner, and Feng (2019)
## Quitting Globalization: Trade-Related Job Losses, Nationalism, and Resistance
## to FDI in the United States

## All calculations, models, and plots were done in R (v. 3.5.3).
## The accompanying R file, quitting-globalization.R, contains all the necessary
## information to produce all of the tables and figures in the paper.

## There are two data files used in this replication:
(1) rhodium.csv - This data set is from the Rhodium Group and details Chinese
investment in the United States. Data are taken from: http://cim.rhg.com on 
a year-by-year basis.
(2) quitting-globalization.csv - This is our original survey experiment data.

## The following packages (version) were used in the analysis:
MASS (7.3.51.1)
stargazer (5.2.2)
sandwich (2.5.1)
lme4 (1.1.21)
aod (1.3.1)
Matrix (1.2.15) (required by lme4 and loaded automatically)

## The following is a list of variable definitions and how each one is coded.
goodforUS - Either "Bad", "Good", or "Neither" -- the respondent's answer to how they considered
            the investment in question.
investmentbad - Investment bad takes on a value of 1 if the respondent said they thought
                the investment in question was bad, and a 0 if they said good or neutral.
treatment - Categorical variable indicating treatment group: Chinese, foreign, or no information.
TAApercapita - TAA claims for respondent's county divided by 2015 county population estimate from US Census.
TAApclogscale - TAA per capita variable, logged, then scaled to have a mean of zero and sd of 1.
unemployedpercapita - The number of unemployed in the county divided by 2015 county population.
                (Unemployment is from 2016 and from the Bureau of Labor Statistics)
man - 1 if the respondent identifies as a man, 0 otherwise
white - 1 if the respondent identifies as white and not multi-racial, 0 otherwise
agescale - The respondent's age, scaled to have a mean of 0 and standard deviation of 1
republican - 1 if the respondent identifies as Republican, 0 otherwise
manufacturing - 1 if the respondent currently or has ever worked in manufacturing, 0 otherwise
culturalnationalism - 1 if the respondent qualified as a cultural nationalist as defined by the criteria
                  in the paper, 0 otherwise
college - 1 if the respondent has a bachelor's degree or higher education, 0 otherwise
countyfull - The full name (including state) of the respondent's county/parish.
state - The respondent's state
miami - 1 if the respondent lives in Miami-Dade County-FL, 0 otherwise
lac - 1 if the respondent lives in Los Angeles County-CA, 0 otherwise
cook - 1 if the respondent lives in Cook County-IL, 0 otherwise
sdc - 1 if the respondent lives in San Diego County-CA, 0 otherwise
nyc - 1 if the respondent lives in New York County-NY, 0 otherwise
maricopa - 1 if the respondent lives in Maricopa County-AZ, 0 otherwise
clark - 1 if the respondent lives in Clark County-NV, 0 otherwise

